package cn.linran.basic.query;

import lombok.Data;

@Data
public class BaseQuery {
    //当前页
    private Integer currentPage = 1;
    //每一页显示的条数
    private Integer pageSize = 5;
    //关键字查询 - 公有信息
    private String keywords = "";
    //根据当前页和每页显示的数据
    public Integer getBegin(){
        return (this.currentPage - 1) * this.pageSize;
    }
}
